package track2.engine;
import java.io.IOException;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.PropertiesCredentials;
import com.amazonaws.services.ec2.AmazonEC2;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;

import track2.bayes.*;
import track2.context.*;
import track2.data.*;
import track2.result.*;

import track2.bayes.*;
import track2.result.*;

/**
 * Entry class for the system
 * Start testing work here
 * 
 * plan 1: naive bayes model
 * plan 2: svd
 * plan 3: linear regression
 * plan 4: knn
 * plan 5: feature selection
 * plan 6: ensemble models
 * 
 * 
 * @author yijia, lingjuan
 *
 */
public class TestEngine {
	static AmazonEC2 ec2;
	static AmazonS3 s3;
	
	public static void naivebayes() throws IOException{
		NaiveBayesFeatures feature = TrainClassifier.train();
		Result result = TestClassifier.test(feature);
		ResultFileTool.outputResult(result);
	}

	public static void main(String[] args) throws IOException {
		AWSCredentials credentials = new PropertiesCredentials(TestEngine.class.getResourceAsStream("AwsCredentials.properties"));
		//run naive bayes model
		s3 = new AmazonS3Client(credentials);
		naivebayes();
	}

}
